package com.zf.zffencheng.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zf.zffencheng.dao.MasterSubsidiaryAdminDao;
import com.zf.zffencheng.model.pojo.MasterSubsidiaryAdmin;
import com.zf.zffencheng.service.MasterSubsidiaryAdminService;
import org.springframework.stereotype.Service;

/**
 * ClassName: MasterSubsidiaryAdminServiceImpl <br/>
 * Description:  <br/>
 * date: 2021/5/17 10:12<br/>
 *
 * @author william <br/>
 */
@Service
public class MasterSubsidiaryAdminServiceImpl extends ServiceImpl<MasterSubsidiaryAdminDao, MasterSubsidiaryAdmin>
        implements MasterSubsidiaryAdminService {
    @Override
    public MasterSubsidiaryAdmin bySubAdminId(Integer id) {
        QueryWrapper<MasterSubsidiaryAdmin> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("SubsidiaryAdminId", id);
        return getOne(queryWrapper, false);
    }
}
